< previous page page_431 next page >

Page 431
in Listing 11.14. You need to add each property individually using the Tools | Add Procedure | Property options from the main menu.
Type.gifListing 11.14. Coding the Public properties of the DataGraph.
Public Property Get GraphType() As Integer
    GraphType = intGraphType
End Property

Public Property Let GraphType(ByVal vNewValue As Integer)
    If IsNumeric(vNewValue) Then
        intGraphType = Int(vNewValue)
    End If
    '
    If intGraphType < 1 Or intGraphType > 11 Then
        Err.Raise 380 ' invalid property
        intGraphType = 0
    End If
    '
End Property

Public Property Get DatabaseName() As String
    DatabaseName = strDBName
End Property

Public Property Let DatabaseName(ByVal vNewValue As String)
    strDBName = vNewValue
End Property

Public Property Get SQLSelect() As String
    SQLSelect = strSQLSelect
End Property

Public Property Let SQLSelect(ByVal vNewValue As String)
    strSQLSelect = vNewValue
End Property

Public Property Get GraphField() As String
    GraphField = strFieldPoint
End Property

Public Property Let GraphField(ByVal vNewValue As String)
    strFieldPoint = vNewValue
End Property

Public Property Get GraphTitle() As String
    GraphTitle = strTitle
End Property

Public Property Let GraphTitle(ByVal vNewValue As String)
    strTitle = vNewValue
End Property

 
< previous page page_431 next page >

If you like this book, buy it!